package com.jhws.business.property.api;

import com.jhws.common.base.bo.JsonRespData;
import com.jhws.business.property.service.PropertyService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/v2/property")
public class PropertyApiV2 {

    @Resource
    PropertyService propertyService;

    @RequestMapping({"getRoles","anon/getRoles"})
    @ResponseBody
    public JsonRespData getRoles(String ownerCode){
        return new JsonRespData("",1,propertyService.getStaffInfoByOwnerCode(ownerCode));
    }
}
